import * as React from 'react';
import { LoadableLoading } from '../views/component/loadableLoading/LoadableLoading';
import * as Loadable from 'react-loadable';
export default (loader, loading = LoadableLoading, delay: number = 300) => {
  return Loadable({
    loader,
    loading,
    delay
  });
}